FROM registry.cn-hangzhou.aliyuncs.com/dockerhub_mirror/java:17-anolis

WORKDIR /datawin-sms-cmpp-server

ARG JAR_FILE=./datawin-sms-cmpp-server.jar

COPY ${JAR_FILE} app.jar

EXPOSE 7891

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms1g -Xmx3g -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF-8"

CMD java $JAVA_OPTS -jar app.jar
